7-10  Ŷʽͬĺϲ
⣺Enterȷϡ
>> syms x y
>> collect(x^2*y + y*x - x^2 - 2*x)
 ans =
 (y-1)*x^2+(y-2)*x
>> f = -1/4*x*exp(-2*x)+3/16*exp(-2*x);
>> collect(f)
 ans =
 -1/4*x*exp(-2*x)+3/16*exp(-2*x)
 >>
